package com.pocket.insight.entity;

import com.alibaba.fastjson.JSONObject;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;
import java.util.Map;

@Data
@NoArgsConstructor
public class User implements Serializable {
    private static final long                          serialVersionUID = 1;
    private              Long                          id;
    private              String                        name;
    private              String                        email;
    private              String                        description;
    private              String                        password;
    private              String                        avatar;
    private              Boolean                       enable;
    private              Date                          createdAt;
    private              Date                          lastPasswordAt;
    private              Date                          lastLoginAt;
    private              Date                          deletedAt;
    private              Boolean                       resetPassword;
    private              String                        userType;
    private              Boolean                       isDelete;
    private              String                        loginName;
    private              String                        mobile;
    private              String                        uuid;
    private              JSONObject                    config;
    private              JSONObject                    options;
    private              Map<String, Object>           userAttributes;
    private              String                        salt;

    public User(Long id) {
        this.id = id;
    }

    public User(String email, String loginName, String mobile, JSONObject config) {
        this.email = email;
        this.loginName = loginName;
        this.mobile = mobile;
        this.config = config;
    }

}
